<!-- Begin of titlebar/breadcrumbs -->
<div id="title-bar">
	<ul id="breadcrumbs">
		<li><a href="index.php" title="Home"><span id="bc-home"></span></a></li>
		<li><a href="index.php?module=user_manager">Kullanıcı Yönetimi</a></li>
		<li class="no-hover">Kullanıcı Düzenle</li>
	</ul>
</div> <!--! end of #title-bar -->

<div class="shadow-bottom shadow-titlebar"></div>

<!-- Begin of #main-content -->
<div id="main-content">
	<div class="container_12">

		<div class="grid_12">
			<h1>Kullanıcı Düzenle</h1>
			<p>Bu Sayfadan kullanıcı bilgilerini ve yetkilerini düzenleyebilirsiniz.</p>
		</div>

		<?php
			if($_POST)
			{
				if($sonuc['sonuc'] == true)
				{
				?>
				<div class="alert success">Kullanıcı Düzenlendi.</div>
				<?php
				}
				else
				{
				?>
				<div class="alert error"><?php echo $sonuc['aciklama']; ?></div>
				<?php
				}
			}
		?>

		<div class="grid_6">
			<div class="block-border">
				<div class="block-header">
					<h1>Kullanıcı Düzenle</h1><span></span>
				</div>
				<form class="block-content form" action="" method="POST">
					<div class="_100">
							<p>
								<label for="shop_id">Bağlı Olduğu Mağaza</label>
								<select name="shop_id" id="shop_id">
									<option value="0">Mağazaya Bağlı Değil.(0)</option>
									<?php
										foreach($shopList as $shop)
										{
											?>
											<option value="<?php echo $shop['shop_id']; ?>"<?php if($loginUser[0]['shop_id'] == $shop['shop_id']){ echo ' selected="selected"'; } ?>><?php echo $shop['shop_nome']; ?></option>
											<?php
										}
									?>
								</select>
							</p>
						</div>
					
					<div class="_50">
						<p><label for="login">Kullanıcı Adı</label>
						<input id="login" name="login" class="required" type="text" value="<?php echo $loginUser[0]['login']; ?>" /></p>
					</div>
					
					<div class="_50">
						<p><label for="password" rel="tooltip-top">Yeni Şifre</label>
						<input id="password" name="password" class="required" placeholder="Şifreyi Değiştirmek İstiyorsanız Doldurunuz!" type="password" value="" /></p>
					</div>
					
					<div class="_50">
						<p><label for="authority_group_id">Yetki Grubu</label>
							<select name="authority_group_id">
									<option value="0">Kapalı Üye</option>
									<?php
										foreach($groupList as $group)
										{
											?>
											<option value="<?php echo $group['id']; ?>"<?php if($loginUser[0]['authority_group_id'] == $group['id']){ echo ' selected="selected"'; } ?>><?php echo $group['group_name']; ?></option>
											<?php
										}
									?>
								</select>
						</p>
					</div>
					
					<div class="_50">
						<p><label for="active">Aktiflik Durumu</label>
						<select name="active" id="active">
							<option value="0"<?php if($loginUser[0]['active'] == 0){ echo ' selected="selected"'; } ?>>Pasif</option>
							<option value="1"<?php if($loginUser[0]['active'] == 1){ echo ' selected="selected"'; } ?>>Aktif</option>
						</select></p>
					</div>
				  
					
					<div class="clear"></div>
					<div class="block-actions">
						<ul class="actions-left">
							<li><a class="button red" id="reset-validate-form" href="javascript:void(0);">İPTAL</a></li>
						</ul>
						<ul class="actions-right">
							<li><input type="submit" class="button" value="KULLANICI DÜZENLE"></li>
						</ul>
					</div>
				</form>
			</div>
		</div>



		<div class="clear height-fix"></div>

	</div></div> <!--! end of #main-content -->